package com.lxh.strategy;

/**
 * 策略模式
 */
public class Main {
    public static void main(String[] args) {
        CashContext cashContext = new CashContext("满300返100");
        CashContext cashContext1 = new CashContext("打8折");
        double result1 = cashContext1.getResult(300);
        double result = cashContext.getResult(700);
        System.out.println(result + " " + result1);
    }
}
